package com.fruit.pojo.orderpackage;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.fruit.pojo.address.Address;
/**
 * 套餐订单PO
 * @author Administrator
 *
 */
public class PackageOrderInfo  implements Serializable {

	private static final long serialVersionUID = 1L;
	private Long goodsPackageId;
	private Integer userId;
	private int buyNum;// 购买数量
	private BigDecimal totalPrice; //总价
	private BigDecimal payPrice; //支付金额
	private String submitToken;
	private int addressId;
	private Address address = new Address();
	private Map<String, Object> packageGood =new HashMap<String, Object>();	
	private List<Map<String, Object>> packageGoodDetails = new ArrayList<Map<String, Object>>();
	
	public Long getGoodsPackageId() {
		return goodsPackageId;
	}
	public void setGoodsPackageId(Long goodsPackageId) {
		this.goodsPackageId = goodsPackageId;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public int getBuyNum() {
		return buyNum;
	}
	public void setBuyNum(int buyNum) {
		this.buyNum = buyNum;
	}
	public BigDecimal getTotalPrice() {
		return totalPrice;
	}
	public void setTotalPrice(BigDecimal totalPrice) {
		this.totalPrice = totalPrice;
	}
	public BigDecimal getPayPrice() {
		return payPrice;
	}
	public void setPayPrice(BigDecimal payPrice) {
		this.payPrice = payPrice;
	}
	public String getSubmitToken() {
		return submitToken;
	}
	public void setSubmitToken(String submitToken) {
		this.submitToken = submitToken;
	}
	public int getAddressId() {
		return addressId;
	}
	public void setAddressId(int addressId) {
		this.addressId = addressId;
	}
	public Address getAddress() {
		return address;
	}
	public void setAddress(Address address) {
		this.address = address;
	}
	public Map<String, Object> getPackageGood() {
		return packageGood;
	}
	public void setPackageGood(Map<String, Object> packageGood) {
		this.packageGood = packageGood;
	}
	public List<Map<String, Object>> getPackageGoodDetails() {
		return packageGoodDetails;
	}
	public void setPackageGoodDetails(List<Map<String, Object>> packageGoodDetails) {
		this.packageGoodDetails = packageGoodDetails;
	}
	@Override
	public String toString() {
		StringBuffer str = new StringBuffer();
		str.append("[");
		str.append("goodsPackageId = " + goodsPackageId);
		str.append(", userId = " + userId);
		str.append(", buyNum = " + buyNum);
		str.append(", totalPrice = " + totalPrice.toString());
		str.append(", payPrice = " + payPrice);
		str.append(", submitToken = " + submitToken);
		str.append(", addressId = " + addressId);		
		str.append("]");
		return super.toString();
	}
		
}
